package com.explorex.infra.puma.gateway.netty.ws.message.handler;

import com.explorex.infra.puma.gateway.netty.ws.WebSocketSession;
import com.explorex.infra.puma.gateway.netty.ws.message.Message;
import com.explorex.infra.puma.gateway.netty.ws.message.MessageBody;


/**
 * @author: JacceYang
 * @createTime: 2022/07/15 1:14 下午
 * @description:
 */
public interface BaseProcessor {

    short getMessageType();

    Message process(WebSocketSession session, Message messageFrame);

    MessageBody parseBody(int contentType, String msgBody) throws Exception;
}
